package quick.frame.service.ui.fragment.child.one;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import java.util.List;

import quick.frame.core.base.BasePresenter;
import quick.frame.core.base.fragment.BaseMVPCompatFragment;
import quick.frame.service.R;
import quick.frame.service.bean.WareHouse;
import quick.frame.service.contract.ReceiveContract;
import quick.frame.service.contract.presenter.ReceivePresenterImpl;

public class WareHourseChildFragment
        extends BaseMVPCompatFragment<ReceiveContract.ReceivePresenter>
        implements ReceiveContract.IReceiveView {


    @NonNull
    @Override
    public BasePresenter initPresenter() {
        return ReceivePresenterImpl.newInstance();
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_receive_child;
    }

    @Override
    public void initUI(View view, @Nullable Bundle savedInstanceState) {

        getToolBar().setTitle("入库");
    }


    public static WareHourseChildFragment newInstance() {
        return new WareHourseChildFragment();
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        if(!hidden){
            getToolBar().setTitle("入库");
        }
        super.onHiddenChanged(hidden);
    }

    @Override
    public void updateContentList(List<WareHouse> list) {

    }

    @Override
    public void showNetworkError() {

    }
}
